﻿
@{
    ViewBag.Title = "Index";
}

<h2>Users In Role</h2>

@using (Html.BeginForm())
{
    foreach (var role in ViewBag.Roles)
    {
        <label>
            <input type="radio" name="role" value="@role.Name" />
            @role.Name
        </label>
    }
    <br />
    <ul>
    @foreach (var user in ViewBag.Users)
    {
        <li>
            <label>
                <input type="checkbox" name="user" value="@user.UserName" />
                @user.UserName
            </label>
        </li>
    }
    </ul>
}